package com.csj.cloud.user.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.csj.cloud.common.dao.MemberMapper;
import com.csj.cloud.common.entity.Member;
import com.csj.cloud.core.service.user.MemberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 会员表 服务实现类
 * </p>
 *
 * @author chengshaojie123
 * @since 2019-11-29
 */
@Service
@com.alibaba.dubbo.config.annotation.Service
public class MemberServiceImpl extends ServiceImpl<MemberMapper, Member> implements MemberService {

    @Autowired
    private MemberMapper memberMapper;
    @Override
    public Member getCurrentMember() {
        //测试
        Member member = new Member();
        member.setId(1L);
        member.setUsername("测试人员");
        member.setPhone("17683009123");
        return member;
    }

    @Override
    public void selectForUpdate() {
        memberMapper.selectForUpdate();
    }
}
